package com.wutuo.roster.provider.enums;

import com.wutuo.roster.provider.constant.TgStateEnum;

import java.util.*;

/**
 * 枚举列表 <br>
 * 类详细说明.
 * <p>
 * Copyright: Copyright (c) 2016年2月6日 上午9:34:05
 * <p>
 *
 * @author lvh
 * @version 1.0.0
 */
public class EnumList {

    /**
     * 获取用户类型
     */
    public static List getUserEnumList() {

        List list = new ArrayList();
        list.add(UserRelationTypeEnum.USER_F.getMap());
        list.add(UserRelationTypeEnum.USER_M.getMap());
        list.add(UserRelationTypeEnum.USER_YY.getMap());
        list.add(UserRelationTypeEnum.USER_NN.getMap());
        list.add(UserRelationTypeEnum.USER_SS.getMap());
        list.add(UserRelationTypeEnum.USER_AY.getMap());
        list.add(UserRelationTypeEnum.USER_SSS.getMap());
        list.add(UserRelationTypeEnum.USER_GG.getMap());
        list.add(UserRelationTypeEnum.USER_GZ.getMap());
        list.add(UserRelationTypeEnum.USER_YZ.getMap());
        list.add(UserRelationTypeEnum.USER_QT.getMap());
        return list;
    }

    /**
     * 获取托管类型
     */
    public static List getTgEnumList() {

        List list = new ArrayList();
        list.add(TgStateEnum.TG_LX.getMap());
        list.add(TgStateEnum.TG_ZT.getMap());
        return list;
    }

    /**
     * 获取朋友圈年级类型
     */
    public static List getGradeEnumList() {

        List list = new ArrayList();
        list.add(EliteGradeEnum.GDADE_ONE.getMap());
        list.add(EliteGradeEnum.GDADE_TWO.getMap());
        list.add(EliteGradeEnum.GDADE_THREE.getMap());
        list.add(EliteGradeEnum.GDADE_FOUR.getMap());
        list.add(EliteGradeEnum.GDADE_FIVE.getMap());
        list.add(EliteGradeEnum.GDADE_SIX.getMap());
        list.add(EliteGradeEnum.GDADE_OTHER.getMap());
        return list;
    }

    /**
     * 获取托管类型
     */
    public static List getEliteTypeSEnumList() {

        List list = new ArrayList();
        list.add(EliteTypeSEnum.TYPE_CHINESE.getMap());
        list.add(EliteTypeSEnum.TYPE_ENGLISH.getMap());
        list.add(EliteTypeSEnum.TYPE_MATH.getMap());
        return list;
    }

    /**
     * 获指标类型
     */
    public static List getEliteChoiceEnumList() {

        List list = new ArrayList();
        list.add(EliteChoiceEnum.ELITE_GOOD.getMap());
        list.add(EliteChoiceEnum.ELITE_J_GOOD.getMap());
        list.add(EliteChoiceEnum.ELITE_JIA_YOU.getMap());
        list.add(EliteChoiceEnum.ELITE_B_SY.getMap());
        return list;
    }

    /**
     * 获取孩子类型
     */
    public static List getEliteChildTypeSEnumList() {

        List list = new ArrayList();
        list.add(EliteTypeSEnum.TYPE_ALL_STU.getMap());
        list.add(EliteTypeSEnum.TYPE_OTHER_STU.getMap());
        return list;
    }

    /**
     * 本周
     */
    public static List getWeekList() {

        List list = new ArrayList();
        // 获取WEEK
        TimeZone zone = TimeZone.getTimeZone("Asia/Shanghai");
        Calendar cal = Calendar.getInstance(zone);
        int c = cal.get(cal.WEEK_OF_YEAR);
        String key = "WEEK" + cal.get(cal.YEAR) + c;
        Map map = new HashMap();
        map.put("type_id", key);
        map.put("type_name", c + "周");
        list.add(map);
        return list;
    }

    /**
     * 本月
     */
    public static List getMonthList() {

        List list = new ArrayList();
        // 获取MONTH
        TimeZone zone = TimeZone.getTimeZone("Asia/Shanghai");
        Calendar cal = Calendar.getInstance(zone);
        int c = cal.get(cal.MONTH) + 1;

        String key = "MONTH" + cal.get(cal.YEAR) + c;
        Map map = new HashMap();
        map.put("type_id", key);
        map.put("type_name", c + "月");
        list.add(map);
        return list;
    }
}
